package com.dhcc.DRGsHosp.facade.impl;

import java.util.HashMap;
import java.util.Map;

import javax.inject.Named;

import org.springframework.beans.factory.annotation.Autowired;

import com.dhcc.DRGsHosp.application.CostSubApplication;
import com.dhcc.DRGsHosp.facade.HospConfigFacade;

@Named("drgsHospFacadeImpl23")
public class HospConfigFacadeImpl implements HospConfigFacade {

	@Autowired
	private CostSubApplication costSubApplication;

	public Map<String,Object> loadCostSubInfo() {
		Map<String,Object> infoMap = new HashMap<String,Object>();
		infoMap.put("costsub",costSubApplication.getAllCostSub());
		infoMap.put("costcate",costSubApplication.getExpenseType());
		return infoMap;
	}
	@Override
	public int saveCostSubInfo(String costSubInfo) {
		return costSubApplication.saveCostSubInfo(costSubInfo);
	}
}
